package com.partsoft.dits.integrate;

import org.springframework.util.Assert;

import com.partsoft.dits.DataDescriptorRegistry;
import com.partsoft.dits.DataEdgeDescriptor;
import com.partsoft.dits.DataIntegrateProcessor;
import com.partsoft.dits.DataTransformer;
import com.partsoft.dits.TransformableEdgeDescriptor;
import com.partsoft.dits.transform.TransformReactor;

public class BaseTableDataTransformer extends AbstractTableDataTransformer
		implements DataTransformer, DataIntegrateProcessor {
	
	private Class<? extends TransformableEdgeDescriptor> supportClass;
	
	private TransformReactor transformReactor;
	
	private DataDescriptorRegistry<TransformableEdgeDescriptor> dataDescriptorRegistry;


	public Class<? extends DataEdgeDescriptor> getSupportClass() {
		return supportClass;
	}

	public void setSupportClass(Class<? extends TransformableEdgeDescriptor> supportClass) {
		Assert.notNull(supportClass);
		this.supportClass = supportClass;
	}

	public TransformReactor getTransformReactor() {
		return transformReactor;
	}

	public void setTransformReactor(TransformReactor transformReactor) {
		this.transformReactor = transformReactor;
	}

	public DataDescriptorRegistry<TransformableEdgeDescriptor> getDataDescriptorRegistry() {
		return dataDescriptorRegistry;
	}

	public void setDataDescriptorRegistry(
			DataDescriptorRegistry<TransformableEdgeDescriptor> dataDescriptorRegistry) {
		this.dataDescriptorRegistry = dataDescriptorRegistry;
	}
	
}
